from django.conf.urls.defaults import *
import settings
import os

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

js_info_dict = {
    'packages': ('',),
    }

urlpatterns = patterns('',
        (r'^$', 'glowdrop.defaults.views.index'),
        (r'^accounts/', include('glowdrop.accounts.urls')),
        (r'^member/', include('glowdrop.member.urls')),
        (r'^notes/', include('glowdrop.notes.urls')),
        (r'^message/', include('glowdrop.message.urls')),
        #(r'^objects/', include('glowdrop.objects.urls'))
        # Example:
        # (r'^glowdrop/', include('glowdrop.foo.urls')),

        # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
        # to INSTALLED_APPS to enable admin documentation:
        (r'^admin/doc/', include('django.contrib.admindocs.urls')),

        # Uncomment the next line to enable the admin:
        (r'^admin/', include(admin.site.urls)),
        (r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict),
        )

if settings.DEBUG:
    urlpatterns += patterns('',
        (r'^static/(?P<path>.*)$', 'django.views.static.serve', 
            {'document_root':os.path.join(os.path.dirname(__file__), 'static')}),
        (r'^inter_info', 'glowdrop.defaults.views.inter_info'))
